package demo.generator;

import com.baomidou.mybatisplus.generator.config.IDbQuery;
import com.baomidou.mybatisplus.generator.config.IKeyWordsHandler;
import com.baomidou.mybatisplus.generator.config.ITypeConvert;
import com.baomidou.mybatisplus.generator.config.querys.MySqlQuery;
import com.baomidou.mybatisplus.generator.keywords.MySqlKeyWordsHandler;

/**
 * mybatis plus generator的mysql实现
 */
public class MysqlMpGenerator extends AbstractMpGenerator {

	@Override
	public IDbQuery getDbQuery() {
		return new MySqlQuery();
	}

	@Override
	public ITypeConvert getTypeConvert() {
		return new MyMsqlTypeConvert();
	}

	@Override
	public IKeyWordsHandler getKeyWordsHandler() {
		return new MySqlKeyWordsHandler();
	}

	@Override
	public String getTablesSql(String tablesSqlFormat, String schema){
		return tablesSqlFormat;
	}
}
